lib/repo-finder: Add Avahi based OstreeRepoFinder implementation
authorPhilip Withnall <withnall@endlessm.com>
Tue, 18 Apr 2017 23:13:28 +0000 (00:13 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 26 Jun 2017 15:56:07 +0000 (15:56 +0000)
commite3d4eeacbca699e3a0551bd02f49eb912df09b3d
treea6d5781d0fd91dc7f5d77efa353b32144c2bae94
parent7ee4e1295ae083c33bda801d59c88699f59c049c
lib/repo-finder: Add Avahi based OstreeRepoFinder implementation

This is a more complex implementation of OstreeRepoFinder which resolves
ref names to remote URIs by looking for refs advertised by peers on the
local network using DNS-SD records and mDNS (Avahi). The idea is to
allow OS and app updates to be propagated over local networks, without
the internet.

It requires an OSTree server and code to generate the DNS-SD adverts in
order to be fully functional — support for this will be added
separately.

Unit tests are included.

Includes fixes by Krzesimir Nowak <krzesimir@kinvolk.io>.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #924
Approved by: cgwalters
16 files changed:
Makefile-libostree-defines.am
Makefile-libostree.am
Makefile-tests.am
apidoc/ostree-experimental-sections.txt
configure.ac
src/libostree/libostree-experimental.sym
src/libostree/ostree-autocleanups.h
src/libostree/ostree-core-private.h
src/libostree/ostree-repo-finder-avahi-parser.c [new file with mode: 0644]
src/libostree/ostree-repo-finder-avahi-private.h [new file with mode: 0644]
src/libostree/ostree-repo-finder-avahi.c [new file with mode: 0644]
src/libostree/ostree-repo-finder-avahi.h [new file with mode: 0644]
src/libostree/ostree-repo-pull.c
src/libostree/ostree.h
tests/.gitignore
tests/test-repo-finder-avahi.c [new file with mode: 0644]